package com.jkgl.mail;

import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@RestController
public class information {
    @Resource
    private  EmailUtil emailUtil;


    @GetMapping("test")
    public String test() {
        emailUtil.sendText("测试","spring-cloud", "271227642@qq.com");
        return "ok";
    }



}